Skip to content

fix error in macOS#2671

Merged
rtobar merged 6 commits into
python:3.12from
sofide:fix/check_spell_on_macos
Oct 17, 2023
Merged

fix error in macOS#2671
rtobar merged 6 commits into
python:3.12from
sofide:fix/check_spell_on_macos

Conversation

@sofide

@sofide sofide commented Oct 15, 2023

Copy link
Copy Markdown
Collaborator

kudos to Marcos Medrano who provide the code to make this fix 🎉

Comment thread scripts/check_spell.py Outdated

@rtobar rtobar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hay que arreglar una cosita antes creo Todo bien!

@rtobar

rtobar commented Oct 15, 2023

Copy link
Copy Markdown
Collaborator

Antes de mergear, podrías probar otra cosa? En vez de poner este fix, me gustaría saber qué pasa si pones todos los contenidos de check_spell.py (menos los imports) en una función y luego la invocas con el típico if __name__ == "__main__", así:

import a
import b

def f():
    ...

if __name__ == "__main__":
    f()

Si eso funciona creo que sería una mejor solución a la propuesta., pero habría que ver que funcione en primer lugar 😛

@sofide

sofide commented Oct 16, 2023

Copy link
Copy Markdown
Collaborator Author

@rtobar funcionó!! 🙌 Y de una, me parece mejor solución. Gracias!

Adjunto pruebas de que quedó funcionando, tanto con params como sin params.

Screenshot 2023-10-16 at 12 58 32

Comment thread scripts/check_spell.py

@rtobar rtobar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un comentario pequeño, pero yo diría que se ve bien

Comment thread scripts/check_spell.py
Comment thread scripts/check_spell.py Outdated

@rtobar rtobar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se va a producción, gracias @sofide!

@rtobar rtobar merged commit 43318e8 into python:3.12 Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants